
from django.urls import path
from crawler_task_rest import views, views_cbv


urlpatterns = [
    path('v1/count/<int:pk>/', views.crawler_get_quantity),
    path('v1/', views.crawler_task_list),             # 用于函数式View测试, list, create
    path('v1/<int:pk>/', views.crawler_task_detail),  # 用于函数式View测试, retrieve, update, delete
    path("v2/", views_cbv.CrawlerTaskList.as_view()),  # 用于Class-based View测试, list, create
    path("v2/<int:pk>/", views_cbv.CrawlerTaskDetail.as_view()),  # 用于Class-based View测试, retrieve, update, delete

]

